import { IChartDataItem } from "./model"


/** 获取客源数据 */
export async function getCustomerSource(): Promise<IChartDataItem[]> {
  return new Promise((resolve, reject) => {
    setTimeout(() => {
      resolve([
        {
          name: '微信',
          value: 234
        },
        {
          name: '美团',
          value: 125
        },
        {
          name: '抖音',
          value: 99
        },
        {
          name: '其他',
          value: 111
        }
      ])
    }, 500)
  })
}